package org.ui;

import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class UITemplate {

     static abstract class JPanelTemplate extends JPanel {
        public JPanelTemplate() {
            initLayout();
            initUI();
        }

        protected abstract void initLayout();

        protected abstract void initUI();
    }

     static abstract class JDialogTemplate extends JDialog {
        public JDialogTemplate() {
            initLayout();
            initUI();
        }
        public JDialogTemplate(JFrame father,boolean modal){        
              super(father,modal);
              initLayout();
              initUI();   
        }

        protected abstract void initLayout();

        protected abstract void initUI();
    }
     static abstract class JComponentTemplate  extends JComponent{
            public JComponentTemplate(){
                initLayout();
                initUI();  
            }
            protected abstract void initLayout();

            protected abstract void initUI();
     }
}
